home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
clean
/
sun3.lha
/
Sun3
/
deltaI.dcl
< prev
next >
Wrap
Text File
|
1992-08-07
|
1KB
|
38 lines
SYSTEM MODULE deltaI;
== Version 0.8
==
== Integer operations
==
RULE
:: + !INT !INT -> INT; == add arg1 to arg2
:: - !INT !INT -> INT; == subtract arg2 from arg1
:: * !INT !INT -> INT; == multiply arg1 with arg2
:: / !INT !INT -> INT; == divide arg1 by arg2
:: % !INT !INT -> INT; == modulo arg1 by arg2
:: ++ !INT -> INT; == increment arg1 with 1
:: -- !INT -> INT; == decrement arg1 with 1
:: = !INT !INT -> BOOL; == true if arg1 equals arg2
:: <> !INT !INT -> BOOL; == true if arg1 does not equal arg2
:: < !INT !INT -> BOOL; == true if arg1 is less the arg2
:: > !INT !INT -> BOOL; == true if arg1 is more then arg2
:: <= !INT !INT -> BOOL; == true if arg1 is less or equal to
== arg2
:: >= !INT !INT -> BOOL; == true if arg1 is more or equal to
== arg2
:: AND% !INT !INT -> INT; == bitwise and of arg1 and arg2
:: OR% !INT !INT -> INT; == bitwise or of arg1 and arg2
:: XOR% !INT !INT -> INT; == exclusive-or arg1 with mask arg2
:: SHIFTL% !INT !INT -> INT; == shift arg1 to the left arg2 bit places
:: SHIFTR% !INT !INT -> INT; == shift arg1 to the right arg2 bit places
:: NOT% !INT -> INT; == one's complement of arg1
:: ITOC !INT -> CHAR; == convert integer to CHAR
:: ITOR !INT -> REAL; == convert integer to REAL
:: ITOS !INT -> STRING; == convert integer to STRING
:: RANDOM -> INT; == returns a random integer